package net.ocps.tchs.soap.worlds;

import net.ocps.tchs.soap.Main;

public abstract class World {

	public World() {
		Main.entitys.clear();
		Main.staticobjects.clear();
		open();
	}
	
	/* Load the map in here and don't forget to call processCreates, hack needs to be redone */
	protected abstract void open();
	
	public void processCreates() {
		for( int i = 0; i < Main.entitys.size(); i++ ) {
			Main.entitys.get( i ).onCreate();
		}
		for( int i = 0; i < Main.staticobjects.size(); i++ ) {
			Main.staticobjects.get( i ).onCreate();
		}
	}
	
	protected boolean timed = false;
	protected boolean interactable = true;
	protected int timeToNextLevel = 2;
}
